package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.dto.BackQueryParam;
import com.kingint.mbg.dto.servcieOrder.OrderQueryParam;
import com.kingint.mbg.dto.servcieOrder.SerServiceOrderParam;
import com.kingint.mbg.ser.entity.SerServiceOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 服务工单表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-28
 */
public interface SerServiceOrderService extends IService<SerServiceOrder> {

    /**
     * 删除对应的服务工单
     *
     * @param id
     * @return
     */
    int deleteServiceOrderInfo(Integer id);

    /**
     * 分页查询服务工单信息
     * @param queryParam
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<SerServiceOrderParam> getServiceOrderList(BackQueryParam queryParam, Integer pageNum, Integer pageSize);

    /**
     * 查询服务单详情
     * @param id
     * @return
     */
    SerServiceOrderParam getServiceOrderInfo(Integer id);

    /**
     * 添加服务工单信息
     * @param serServiceOrder
     * @return
     */
    Integer insertServiceInfo(SerServiceOrder serServiceOrder);

}
